<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>导航管理-添加导航</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="/usercp/layui/css/layui.css" media="all">
</head>
<body>

  <div class="layui-form" lay-filter="layuiadmin-form-custom" id="layuiadmin-form-custom" style="padding: 20px 0 0 0;">
    <div class="layui-form-item">
      <label class="layui-form-label">标题</label>
      <div class="layui-input-inline">
        <input type="text" name="title" lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
      </div>
    </div>
    <div class="layui-form-item layui-form-text">
      <label class="layui-form-label">描述</label>
      <div class="layui-input-block">
        <textarea name="content" placeholder="请输入描述内容" class="layui-textarea"></textarea>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">排序</label>
      <div class="layui-input-inline">
        <input type="number" name="sort" lay-verify="required" placeholder="请输入排序数.越小越靠前" autocomplete="off" class="layui-input">
      </div>
    </div>
    <div class="layui-form-item">
    <label class="layui-form-label">是否发布</label>
      <div class="layui-input-block">
        <input type="radio" name="status" value="1" title="发布" checked>
        <input type="radio" name="status" value="0" title="不发布">
      </div>
    </div>
      <div class="layui-form-item">
        <label class="layui-form-label">导航图片</label>
        <div class="layui-input-inline">
          <input name="imgs" lay-verify="required"   readonly id="LAY_imgsSrc" placeholder="图片地址" value="" class="layui-input">
        </div>
        <div class="layui-input-inline layui-btn-container" style="width: auto;">
          <button type="button" class="layui-btn layui-btn-primary" id="LAY_imgUpload">
            <i class="layui-icon">&#xe67c;</i>上传图片
          </button>
          <button class="layui-btn layui-btn-primary" layadmin-event="avartatPreview">查看图片</button >
        </div>
        <div class="layui-form-mid layui-word-aux">建议尺寸：1280x600px</div>
     </div>
    <div class="layui-form-item layui-hide">
      <input type="button" lay-submit lay-filter="LAY-user-front-submit" id="LAY-user-front-submit" value="确认">
    </div>
  </div>

  <script src="/usercp/layui/layui.js"></script>  
  <script>
  layui.config({
    base: '/usercp/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'banner/banner']);
  </script>
</body>
</html>